<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Ajax_Picture extends Controller{

public function action_index()
{
}

public function action_upload()
{
	header('Pragma: no-cache');
	header('Cache-Control: private, no-cache');
	header('Content-Disposition: inline; filename="files.json"');
	header('X-Content-Type-Options: nosniff');
	$booklet_id = $this->request->param('id');
	if (!ORM::factory('booklet')->where('id', '=', $booklet_id)->find()->loaded())
	{
		return;
	}
	$upload_handler = new Upload_Handler();
	$upload_handler->post($booklet_id);
}

}




